package unit1;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 租赁
 */
@Getter
@AllArgsConstructor
public class Rental {

    private Movie movie;
    private int daysRented;

    double getCharge() {
        return movie.getCharge(daysRented);
    }

    int getFrequentRenterPoints() {
        return movie.getFrequentRenterPoints(daysRented);
    }



}
